<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Erosi</title>
<script type="text/javascript">
function eskErosi(){
	if((document.formularioa.txartelKop.value=="") || (document.formularioa.visa.value=="")){
		alert(' beharrezko eremuak bete behar dira!');
		return 0;
	}
	else{
		document.formularioa.action = "../php/erosi.php";
		document.formularioa.method = "POST";
		document.formularioa.submit();
	}
}


</script>
</head>
<body>

	<form name="formularioa" method = "POST">

		
		<fieldset id="formulario">
			<legend> Erosi </legend>
			<table>

				
				<tr>
					<td>Txartel Kopurua</td>
					<td><input type="text" name="txartelKop" value=""></td>
				</tr>
				<tr>
					<td>Visa Zenbakia</td>
					<td><input type="text" name="visa" value=""></td>
				</tr>
	</table>
		</fieldset>
	</form>
	<input type="button" name="OK" value=""
			onclick="eskErosi();">
	</body>
	
	
</html>